﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using RedHouse.Data.Service;
using RedHouse.Data.Base;

namespace RedHouse.AdminControl.UserControls
{
    public partial class UCDishList : System.Web.UI.UserControl
    {
        private IDishService _dishService;
        protected void Page_Load(object sender, EventArgs e)
        {
            Initialize();
        }

        private void Initialize()
        {
            _dishService = new DishService();
            rptDish.DataSource = _dishService.GetAllDish();
            rptDish.DataBind();
        }
    }
}